﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame4
{
    class Wall : Object
    {

        public Wall(String id, Position2D position, Model model) : base(id, position, model)
        {
            type = Object.TypeObject.wall;

        }
        
        override public void draw()
        {
            /*
            int sizeX = model.getAnimation(idAnimation).getFrame(numFrame).texture.getWidth();
            int sizeY = model.getAnimation(idAnimation).getFrame(numFrame).texture.getHeight();
            int marginX = 0;
            int marginY = 0;
            model.getAnimation(idAnimation).getFrame(numFrame).draw(position.X + marginX, position.Y + marginY);*/
            int sizeX = model.getAnimation(idAnimation).getFrame(numFrame).texture.getWidth();
            int sizeY = model.getAnimation(idAnimation).getFrame(numFrame).texture.getHeight();
            int marginX = 0;
            int marginY = 0;

            //if (sizeY > 64)
              //  model.getAnimation(idAnimation).getFrame(numFrame).draw(position.X + marginX, (position.Y - 64) + marginY);
            //else
                model.getAnimation(idAnimation).getFrame(numFrame).draw(position.X + marginX, position.Y + marginY);
            //model.getAnimation(idAnimation).getFrame(numFrame).draw(tile.getRealX() + margin, tile.getRealY() + margin);
  
              
                    //model.getAnimation(idAnimation).getFrame(numFrame).draw(position.X + marginX, (position.Y - 0) + marginY);
       

            

        }
    }
}
